import Vue from "vue"

Vue.mixin({
    methods: {
        hasAuth(perm) {
            // 判断权限是否在用户的权限列表中
            var authority = this.$store.state.permList
            return authority.indexOf(perm) > -1
        }
    }
})